﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Diagnostics;

namespace Spider
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //RegistryToRun.Regist();
            Process instance =Singleton.RunningInstance();
            if (instance == null)
            {
                Application.Run(new frmMain());
            }
            else
            {
                Singleton.HandleRunningInstance(instance);
            }
        }
    }
}
